<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" {if $selproid}onsubmit="return dwzSearch(this, 'dialog');" {else} onsubmit="return navTabSearch(this);" {/if} action="{:U($module_name.'/'.$action_name)}" method="post">
       <input type ='hidden' name='selproid' value="{$selproid}" />
	    <div class="searchBar">
            <ul class="searchContent">
                <li style="width:200px;">
                <label style="width: 50px;">关键字：</label>
                <input type="text" name="keywords" value="{$keywords}"/>
                </li>
                <li style="width: 100px;">
               <select name="sfield" class="combox">
				<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>
				<option value="activity_name" {if $wherefields=='activity_name'}selected="selected"{/if}>活动名称</option>
				<option value="activity_content" {if $wherefields=='activity_content'}selected="selected"{/if}>活动内容</option>
				<option value="userid" {if $wherefields=='userid'}selected="selected"{/if}>录入人</option>
			</select>
			<input type="hidden" name="sfield_name" value="activity_name,activity_content,userid" />					
                </li>											
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			
			<!-- <li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			-->
			<li><a class="add" href="{:U('Activity/edit')}" target="dialog" width="600" height="550"><span>添加</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>ID</th>
				<th>活动名称</th>
				<th>活动内容</th>
				<th orderField="userid" {if $orderField=='userid'}class="{$orderDirection}"{/if}>录入人</th>		
				<th orderField="ctime" {if $orderField=='ctime'}class="{$orderDirection}"{/if}>录入时间</th>	
				<th orderField="start_time" {if $orderField=='start_time'}class="{$orderDirection}"{/if}>开始日期</th>
				<th orderField="end_time" {if $orderField=='end_time'}class="{$orderDirection}"{/if}>结束日期</th>						
				<th>备注</th>								
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr target="sid_user" rel="9">
				<td>{$vo.id}</td>
				<td>{$vo.activity_name}</td>
				<td>{$vo['activity_content']}</td>
				<td><a href='{:U('User/detail',array('id'=>$vo['userid']))}' rel="User_detail_{$vo.userid}" height="500" width="580" target="dialog" title="查看">{$vo.userid}</a></td>	
				<td>{if $vo['ctime']}{$vo.ctime|date='Y-m-d H:i:s',###}{/if}</td>							
				<td>{if $vo['start_time']}{$vo.start_time|date='Y-m-d H:i:s',###}{/if}</td>					
				<td>{if $vo['end_time']}{$vo.end_time|date='Y-m-d H:i:s',###}{/if}</td>
				<td>{$vo['attr']}</td>

				<td><a class='btnEdit' href="{:U('Activity/edit',array('id'=>$vo['id']))}" target="dialog" width="600" height="550">编辑</a></td>
			</tr>
			</volist>
		</tbody>
	</table>
	<include file="Index:pages" />
</div>
